package com.example.crm01.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;


@TableName("client")
public class Client extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 客户名称
     */
    private String clientName;

    /**
     * 客户曾用名
     */
    private String clientFormerName;

    /**
     * 客户身份证
     */
    private String idCard;

    /**
     * 客户地址
     */
    private String address;

    /**
     * 客户归属地
     */
    private String homeLocation;

    /**
     * 客户联系人
     */
    private String contacts;

    /**
     * 客户电话1
     */
    private Integer phoneOne;

    /**
     * 客户电话2
     */
    private Integer phoneTwo;

    /**
     * 客户经理
     */
    private String clientManger;

    /**
     * 客户经理电话
     */
    private Integer mangerPhone;

    /**
     * 业务经理
     */
    private String salesman;

    /**
     * 区域值（0：A区域 ，1：B区域）
     */
    private Integer region;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getClientFormerName() {
        return clientFormerName;
    }

    public void setClientFormerName(String clientFormerName) {
        this.clientFormerName = clientFormerName;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getHomeLocation() {
        return homeLocation;
    }

    public void setHomeLocation(String homeLocation) {
        this.homeLocation = homeLocation;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public Integer getPhoneOne() {
        return phoneOne;
    }

    public void setPhoneOne(Integer phoneOne) {
        this.phoneOne = phoneOne;
    }

    public Integer getPhoneTwo() {
        return phoneTwo;
    }

    public void setPhoneTwo(Integer phoneTwo) {
        this.phoneTwo = phoneTwo;
    }

    public String getClientManger() {
        return clientManger;
    }

    public void setClientManger(String clientManger) {
        this.clientManger = clientManger;
    }

    public Integer getMangerPhone() {
        return mangerPhone;
    }

    public void setMangerPhone(Integer mangerPhone) {
        this.mangerPhone = mangerPhone;
    }

    public String getSalesman() {
        return salesman;
    }

    public void setSalesman(String salesman) {
        this.salesman = salesman;
    }

    public Integer getRegion() {
        return region;
    }

    public void setRegion(Integer region) {
        this.region = region;
    }

    @Override
    public String toString() {
        return "Client{" +
                "id=" + id +
                ", clientName='" + clientName + '\'' +
                ", clientFormerName='" + clientFormerName + '\'' +
                ", idCard='" + idCard + '\'' +
                ", address='" + address + '\'' +
                ", homeLocation='" + homeLocation + '\'' +
                ", contacts='" + contacts + '\'' +
                ", phoneOne=" + phoneOne +
                ", phoneTwo=" + phoneTwo +
                ", clientManger='" + clientManger + '\'' +
                ", mangerPhone=" + mangerPhone +
                ", salesman='" + salesman + '\'' +
                ", region=" + region +
                '}';
    }
}
